package com.biqee.service.bq;

import java.util.List;

import com.biqee.model.common.PageInfoObject;
import com.biqee.model.db.BqQuery;
import com.biqee.model.db.BqQueryRelation;
import com.biqee.model.db.TbItem;
import com.biqee.model.page.ItemVO;

public interface BqQueryRelationService {
	
	
	void clearRelationByQueryId(Integer bqQueryId);
	
	void createRelation(BqQuery bqQuery, List<TbItem> list) ;

	public void save(BqQueryRelation record);
	
	List<ItemVO> listRelationItemsByPage(PageInfoObject page);
	
	
	/**
	 * 根据bq_tuan_id 查询与之相关的所有商品ID
	 * @param bqTuanId
	 * @return
	 */
	public List<Integer> readAllTbItemIdsByBqTuanId(Integer bqTuanId);

	boolean delete(Integer bqQueryRelationId);
	
	/**
	 * 根据bq_tuan_id 查询聚划算活动对应的商品ID
	 * @param bqTuanId
	 * @return
	 */
	public Integer getTbItemId(Integer bqTuanId);
}
